﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="new.aspx.cs" Inherits="org_manUser_new" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新建组织管理员</title> 
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            text-align: right;
        }
        .style2
        {
            color: #FF0000;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div id="head">
    
    </div>
    <div id="content">
        <table style="width: 100%;">
            <tr>
                <td class="style1"><span class="style2">*</span>用户名：
                </td>
                <td>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
                    <asp:TextBox ID="tb_username" runat="server" MaxLength="20" AutoPostBack="True" 
                        ontextchanged="tb_username_TextChanged"></asp:TextBox>
                    <asp:Label ID="Label1" runat="server" style="color: #CC3300" Text="*此用户名已经使用" Visible="False"></asp:Label>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="tb_username" EventName="TextChanged" />
            </Triggers>
        </asp:UpdatePanel>
                </td>
                <td>
                    4-16个字符<asp:RequiredFieldValidator ID="rf3" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_username" 
                        Text="*必须输入"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1"><span class="style2">*</span>真实姓名：</td>
                <td>
                   <asp:TextBox ID="tb_realname" runat="server" MaxLength="10"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="rf4" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_realname">*必须输入</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="style1">手机号码：</td>
                <td>
                    <asp:TextBox ID="tb_mphone" runat="server"></asp:TextBox></td>
                <td>
                     &nbsp; &nbsp;
                     <asp:RegularExpressionValidator ID="re1" runat="server" 
                        ControlToValidate="tb_mphone" ErrorMessage="RegularExpressionValidator" 
                        
                        
                        ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)" 
                        SetFocusOnError="True">*格式错误</asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td class="style1"><span class="style2">*</span>密码：
                </td>
                <td>
                    <asp:TextBox ID="tb_password" runat="server" TextMode="Password" CssClass="pwdWidth" MaxLength="16"></asp:TextBox>
                </td>
                <td>6-16位&nbsp;
                    <asp:RequiredFieldValidator ID="rf2" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_password" 
                        Text="*必须输入"></asp:RequiredFieldValidator>
                &nbsp;
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="tb_password" ErrorMessage="*长度不合" 
                        ValidationExpression="\w{6,16}"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style1"><span class="style2">*</span>确认密码：
                </td>
                <td>
                    <asp:TextBox ID="tb_re_password" runat="server" TextMode="Password" CssClass="pwdWidth" MaxLength="16"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rf1" runat="server" 
                        ErrorMessage="RequiredFieldValidator" Text="*必须输入" 
                        ControlToValidate="tb_re_password"></asp:RequiredFieldValidator>
                     &nbsp; &nbsp;<asp:CompareValidator ID="c1" runat="server" 
                        ErrorMessage="CompareValidator" ControlToCompare="tb_password" 
                        ControlToValidate="tb_re_password" Text="*两次输入不一致" SetFocusOnError="True"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">性别：</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem Selected="True">男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:DropDownList>
                        </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1"><span class="style2">*</span>E-mail：</td>
                <td>
                    <asp:TextBox ID="tb_email" runat="server"></asp:TextBox>
                        </td>
                <td>
                    <asp:RegularExpressionValidator ID="re2" runat="server" 
                        ControlToValidate="tb_email" ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        SetFocusOnError="True">格式不正确</asp:RegularExpressionValidator>
                   <asp:RequiredFieldValidator ID="rf5" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_email">*必须输入</asp:RequiredFieldValidator>
                        </td>
            </tr>
            <tr>
                <td class="style1">单位电话：/td>
                <td style="margin-left: 80px">
                    <asp:TextBox ID="tb_phone" runat="server"></asp:TextBox>
                        </td>
                <td>
                    <asp:RegularExpressionValidator ID="re3" runat="server" 
                        ErrorMessage="RegularExpressionValidator" 
                        
                        ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)" 
                        ControlToValidate="tb_phone">格式不正确</asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td class="style1">住址：</td>
                <td style="margin-left: 80px">
                    <asp:TextBox ID="tb_address" runat="server" MaxLength="100"></asp:TextBox>
                        </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">邮编：</td>
                <td>
                    <asp:TextBox ID="tb_postcode" runat="server" MaxLength="10"></asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">备注：</td>
                <td>
                    <asp:TextBox ID="tb_description" runat="server" MaxLength="100"></asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">&nbsp;</td>
                <td>
                    <asp:RadioButton ID="RadioButton1" runat="server" Checked="True" Text="组织管理员" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">&nbsp;</td>
                <td>
                    
                    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="imgborder" onclick="ImageButton1_Click" ><img runat="server" src="~/images/reg.gif" alt="" /></asp:LinkButton>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">&nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        
        </div>
    </div>
    </form>
</body>
</html>
